package operation;

import book.Book;
import book.BookList;

public class DisplayOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("展示所有书籍");
        for(int i=0;i<bookList.getUsedSize();++i) {
            Book book = bookList.getPos(i);
            System.out.println(book);
        }
    }
}
